"""
数据库CRUD操作
"""
import connect


class DBCrud:

    def find(self):
        """
        数据库查询操作
        :return:
        """
        db_cnnect = connect.DBConnect()
        connection = db_cnnect.get_connect()
        with connection.cursor() as cursor:
            sql = "SELECT * FROM `name` limit 0,10"
            cursor.execute(sql)
            rs = cursor.fetchall()
            print(rs)


if __name__ == '__main__':
    temp = DBCrud()
    temp.find()
